package object.interfase;

public class test {
    public static void main(String[] args) {
        Dog dog = new Dog("狗子",1);
        dog.eat();
        dog.swim();

        Rabbit rabbit = new Rabbit("兔子", 1);
        rabbit.eat();
    }
}
